/**
 * Created by XiaAo on 2017/3/31.
 * function :图书管理路由配置
 * author ：xiaao
 * data : 2017-3-31
 */

var ngModuleLibManager = angular.module("ngModule_LibManager", []);

ngModuleLibManager.config(['$stateProvider', '$urlRouterProvider', function ($stateProvider, $urlRouterProvider) {

    $urlRouterProvider.otherwise("");

    //图书管理
    $stateProvider
        .state('library', {
            url: '/library',
            templateUrl: '../view/uiView/leftBar/libraryManagerLeftBar.html'    //侧边栏
        })
        .state('library.bookSearcher', {
            url: '/bookSearcher',
            templateUrl: "../view/uiView/libraryManager/bookSearcher.html", //图书检索
            controller:'bookSearchCtrl'
        })
        .state('library.newBook', {
            url: '/newBook',
            templateUrl: "../view/uiView/libraryManager/newBook.html",  //新书推荐
            controller:'newBookCtrl'
        })
        .state('library.borrowInfo', {
            url: '/borrowInfo',
            templateUrl: "../view/uiView/libraryManager/borrowInfo.html",    //借阅信息
            controller:'borrowInfoCtrl'
        })
        .state('library.overTimeTip', {
            url: '/overTimeTip',
            templateUrl: "../view/uiView/libraryManager/overTimeTip.html",  //超期提示
            controller:'overTimeTipCtrl'
        })
        .state('library.bookManager', {
            url: '/bookManager',
            templateUrl: "../view/uiView/libraryManager/bookManager.html",  //书籍管理
            controller:'bookManagerCtrl'
        })
        .state('library.bookRank', {
            url: '/bookRank',
            templateUrl: "../view/uiView/libraryManager/bookRank.html",  //借阅排行
            controller:'bookRankCtrl'
        })

}]);

module.exports = ngModuleLibManager;

